package org.elephas.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;

/**
 * <p>User: Nick Heudecker</p>
 * <p>Date: Jan 27, 2008</p>
 * <p>Time: 5:54:52 PM</p>
 */
@Entity
public class Category extends AbstractPersistent {

    @Column(length=35)
    private String name;

    @Column(length=255)
    private String description;

    @Column(length=15)
    private String internalName;

	@ManyToOne
    private Blog blog;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getInternalName() {
        return internalName;
    }

    public void setInternalName(String internalName) {
        this.internalName = internalName;
    }

    public Blog getBlog() {
        return blog;
    }

    public void setBlog(Blog blog) {
        this.blog = blog;
    }
}
